Same page works differently on two different servers.
Same page works differently on two different servers.
am 21.12.2007 20:15:03 von Simon
Hi,
I put a webpage on two different servers. On one of them it works
fine:
www.fargo.pozman.pl/farmmonitor/index.php
But when I put it on www.ageng.ndsu.nodak.edu/farmmonitor/index.php=
then the links on the left side doesn't work. Does anyone has any idea
what could be a reason.
It seems that there is a problem with passing variables, but on one
server it works fine, so is it something with sever configuration?
class=3Dstopa>FARM MONITOR:::2007:::Szymon Woznica:::North Dakota State
University
echo ' [';
if($gosc!=3D"1"){
$file=3Dfopen("licznik.txt", "r"); //otwieranie pliku licznika do
odczytu
flock($file, 1); //blokowanie do odczytu
$cyfra=3Dfgets($file, 100);//pobieramy z pliku cyfr=EA
flock($file, 3); //odblokowanie po odczycie
fclose($file);
$cyfra++; //dodanie punktu do licznika
$file=3Dfopen("licznik.txt", "w");//otwieranie pliku licznika do
zamazania
flock($file, 2); //blokowanie do zapisu
fwrite($file, $cyfra); //zapis stanu licznika
flock($file, 3); //odblokowanie po zapisie
fclose($file);
echo ("$cyfra");//wy=B6wietlenie cyfry na stronie
}
// je=B6li u=BFytkownik by=B3 ju=BF przed chwil=B1 na stronie wykona si=EA
instrukcja poni=BFej
else {
$file=3Dfopen("licznik.txt", "r"); //otwieranie pliku licznika do
odczytu
flock($file, 1); //blokowanie do odczytu
$cyfra=3Dfgets($file, 100);//pobieramy z pliku cyfr=EA
flock($file, 3);//odblokowanie po odczycie
fclose($file);//zamykamy plik
echo ("$cyfra");//wy=B6wietlenie cyfry na stronie
} ?> visits]
Re: Same page works differently on two different servers.
am 21.12.2007 23:41:42 von Larry Anderson
Register Globals on/off on different servers usually munges code you
had working on the other.
Re: Same page works differently on two different servers.
am 22.12.2007 08:41:46 von David Quinton
On Fri, 21 Dec 2007 14:41:42 -0800 (PST), larry@portcommodore.com
wrote:
>Register Globals on/off on different servers usually munges code you
>had working on the other.
That was what I though too.
Can be verified by a phpinfo()
But would be better to replace the:
if ($f==0){
etc
with
if ($_GET['f''==0){
rather than enable register_globals IMO
--
Locate your Mobile phone:
Great gifts: